import 'package:flutter/material.dart';
import 'package:flutter_demo/detail_page.dart';
import 'package:flutter_demo/home_page.dart';
import 'package:flutter_demo/routers/routers.dart';
import 'package:go_router/go_router.dart';

void main() { 
  // CustomFlutterBinding();
  runApp(const MyApp());
}

///创建一个自定义的Binding，继承和with的关系如下，里面什么都不用写
// class CustomFlutterBinding extends WidgetsFlutterBinding with BoostFlutterBinding {}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      debugShowCheckedModeBanner: false,
      routerConfig: appRouters,
    );
  }
}

